package com.tron.sync.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tron.sync.entities.JZUser;
import com.tron.sync.mapper.JZUserMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JZUserServiceImpl extends ServiceImpl<JZUserMapper, JZUser> implements JZUserService {
    @Override
    public List<JZUser> getByOrgName(String name) {
        List<JZUser> jzUsers = this.baseMapper.selectList(Wrappers.<JZUser>lambdaQuery().eq(JZUser::getOrgName, name));
        return jzUsers;
    }
}
